<!--
 * @Author: yaojian66 1327629137@qq.com
 * @Date: 2022-06-27 15:00:09
 * @LastEditors: yaojian66 1327629137@qq.com
 * @LastEditTime: 2022-06-27 15:10:20
 * @FilePath: \geyao\第六十七题 this指向.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>this指向</title>
</head>
<body>
  <!-- 请补全JavaScript函数，使obj对象中fn函数返回该对象中a属性和b属性的和。 -->
  <script>
    var obj = {
    a: 1,
    b: 2,
    fn: function(){
        // 补全代码
      return  this.a+this.b
    }
}
  </script>
</body>
</html>